// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import './assets/css/reset.scss'
import { Button, Swipe, SwipeItem, Header, Navbar, TabItem, InfiniteScroll } from 'mint-ui'
import AMap from 'vue-amap'
import 'mint-ui/lib/style.css'
import '../static/iconfont/iconfont.css'

Vue.component(Button.name, Button)
Vue.component(Swipe.name, Swipe)
Vue.component(SwipeItem.name, SwipeItem)
Vue.use(InfiniteScroll)
Vue.use(AMap)
AMap.initAMapApiLoader({
  key: 'c94d066310a9e3245a4cbe47514813c3',
  plugin: ['AMap.Geolocation']
})

Vue.component(Header.name, Header)
Vue.component(Navbar.name, Navbar)
Vue.component(TabItem.name, TabItem)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
})
